package com.qq.first_project.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qq.first_project.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Qiu
 * @since 2022-03-09
 */
public interface UserMapper extends BaseMapper<User> {
    IPage<User> pageList(Page<User> page,String username);

    // 根据用户名和密码查询
    User findByUsernameAndPassword(String username,String password);
}
